@vw:3.75vw;

body {
  background-color: #f6f6f6;
}

// 头部广告
.top-ad {
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  background-color: #232326;
  .ad-cancel {
    width: 16px;
    height: 16px;
    margin-left: (10 / @vw);
    background: url(../images/top-cancel.png) center;
    background-size: contain;
  }
  .logo {
    width: 35px;
    height: 35px;
    margin-left: (18 / @vw);
    margin-right: (10 / @vw);
    background: url(../images/logo.png) center;
    background-size: contain;
  }
  .ad-txt {
    font-size: 12px;
    .txt-up {
      color: #fff;
    }
    .txt-down {
      color: #999;
    }
  }
  .link-app {
    position: absolute;
    top: 0;
    right: 0;
    width: (120 / @vw);
    height: 50px;
    background-color: #cd2525;
    line-height: 50px;
    text-align: center;
    font-size: 15px;
    color: #fff;
  }

  .mask-ad {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 50;
  }

  .mask-link,
  .mask-link-load {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 291px;
    height: 173px;
    border-radius: 12px;
    transform: translate(-50%,-50%);
    background-color: #fff;
    text-align: center;
  }

  .mask-link {
    img {
      width: 60px;
      margin: 20px 0;
    }
    p {
      line-height: 20px;
      font-size: 15px;
      color: #333;
    }
  }

  .mask-link-load {
    position: relative;
    display: none;
    color: #2E2D2D;
    overflow: hidden;
    .download {
      .continue {
        display: inline-block;
        width: 122px;
        height: 31px;
        line-height: 31px;
        border-radius: 16px;
        background: #FFFFFF;
        border: 1px solid #F2140C;
        color: #F2140C;
        margin-right: 12px;
        font-size: 12px;

      }
      .download-App {
        display: inline-block;
        width: 122px;
        height: 31px;
        line-height: 31px;
        border-radius: 16px;
        background: linear-gradient(
        -135deg, #F2140C 0%, #F2270C 70%, #F24D0C 100%);
        border-radius: 16px;
        font-size: 12px;
        color: #fff;
      }
    }
    .mask-bottom {
      position: absolute;
      bottom: 0;
      background-color: #eee;
      font-size: 10px;
      color: #888;
      a {
        color: #888;
        text-decoration: underline;
      }
    }
    p {
      margin-top: 30px;
      margin-bottom: 20px;
    }
  }

}

// 头部区域
.header {
  position: relative;
  width: 100%;
  height: 187px;
  .hd-bg{
    width: 100%;
    height: 100%;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .hd-top {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 44px;
    .top-classify {
      width: 20px;
      height: 18px;
      margin-left: 15px;
      background: url(../images/top-classify.PNG) no-repeat;
      background-size: contain;
    }
    .top-login {
      width: 40px;
      font-size: 14px;
      color: #fff;
    }
    .top-search {
      position: relative;
      flex: 1;
      margin: 0 10px;
      height: 30px;
      border-radius: 15px;
      line-height: 30px;
      padding: 0 10px 0 80px;
      background-color: #f7f7f7;
      input {
        width: 100%;
        border: none;
        font-size: 12px;
        background-color: #f7f7f7;
        &::placeholder {
          color: #999;
        }
      }
      .sm-logo {
        position: absolute;
        left: 18px;
        top: 8px;
        width: 25px;
        height: 15px;
        background: url(../images/top-logo.PNG) no-repeat;
        background-size: contain;
        border-right: 1px solid #ccc;
      }
      .fdj {
        position: absolute;
        top: 8px;
        left: 50px;
        width: 18px;
        height: 15px;
        background: url(../images/jd-sprites.PNG) no-repeat -78px 0;
        background-size: 1050%;
      }
    }
  }
  .hd-banner {
    position: absolute;
    left: 12px;
    bottom: 0;
    width: (350 / @vw);
    height: 140px;
    // background-color: pink;
    border-radius: 8px;
    overflow: hidden;
    ul {
      width: 1000%;
      margin-left: -100%;
      li {
        float: left;
        width: (350 / @vw);
        height: 140px;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
    .banner-circle {
      position: absolute;
      bottom: 5px;
      left: 50%;
      transform: translateX(-50%);
      li {
        display: inline-block;
        width: 5px;
        height: 5px;
        background-color: #ccc;
        border-radius: 2px;
        &.current {
          background-color: #fa2c19;
        }
      }
    }
  }
}


//  底部区域
footer {
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
  box-shadow: 0 0 10px 0 hsl(0deg 6% 58% / 60%);
  z-index: 30;
  div {
    flex: 1;
    display: flex;
    justify-content: center;
    img {
      height: 50px;
    }
  }
}


//  中心区域
.main {
  margin-top: 3px;
  padding-bottom: 50px;

  // 活动商品
  .active-goods {
    display: flex;
    justify-content: center;
    width: 100%;
    height: (115 / @vw);
    max-height: 166px;
    // background-color: skyblue;
    .active-box {
      position: relative;
      height: 100%;

      .goods-l,
      .goods-r {
        width: (65 / @vw);
        max-width: 94px;
        z-index: -1;
        img {
          width: 100%;
        }
      }

      .goods-cl,
      .goods-cr {
        width: (70 / @vw);
        max-width: 100px;
        z-index: -1;
        img {
          width: 100%;
        }
      }

      img {
        height: 100%;
      }

      .goods-r,
      .goods-l {
        position: absolute;
        top: 20px;
        left: 13px;
      }

      .goods-cl {
        position: absolute;
        left: 16px;
        top: 14px;
      }
      .goods-cr {
        position: absolute;
        right: 16px;
        top: 14px;
      }

      span {
        display: block;
        position: absolute;
        bottom: 6px;
        left: 15px;
        height: 20px;
        font-size: 12px;
      }
    }
  }

  //  功能分类
  .classify-box {
    position: relative;
    width: 100%;
    padding-bottom: 20px;
    overflow: hidden;
    .classify-list {
      display: flex;
      width: 200%;
      .first-list,
      .last-list {
        display: flex;
        flex-wrap: wrap;
        li {
          display: flex;
          width: 19%;
          margin: 10px 0 0;
          // margin-top: 10px;
          flex-direction: column;
          align-items: center;
        }
        img {
          width: (40 / @vw);
          max-width: 58px;
          margin-bottom: 5px;
        }
        span {
          color: #333;
          font-size: 13px;
        }
      }
    }

    ol {
      position: absolute;
      bottom: 5px;
      left: 50%;
      transform: translateX(-50%);
      li {
        display: inline-block;
        width: 5px;
        height: 5px;
        background-color: #ccc;
        border-radius: 2px;
      }
      li.current {
        background-color: #fa2c19;
      }
    }
  }

  //  京东秒杀
  .seckill {
    height: (135 / @vw);
    max-height: 240px;
    min-height: 130px;
    margin: 5px 10px;
    background-color: skyblue;
    background: url(../images/limit-top.PNG) no-repeat; background-size: contain;
    background-color: #fff;
    border-radius: 10px;
    
    .seckill-top {
      position: relative;
      display: flex;
      align-items: center;
      height: 34px;
      p {
        margin: 0 10px;
        color: #333;
      }

      .seckill-nth {
        margin-right: 10px;
        color: #ff2727;
        img {
          height: 20px;
        }
      }
      .seckill-time {
        color: #ff2727;
        span {
          display: inline-block;
          width: 18px;
          height: 22px;
          border-radius: 5px;
          background-color: #ff2727;
          color: #fff;
        }
      }

      .more {
        position: absolute;
        right: 5px;
        top: 10px;
        font-size: 12px;
        color: #f23030;
        img {
          width: 10px;
        }
      }
    }

    .seckill-goods {
      ul {
        display: flex;
        li {
          flex: 1;
          img {
            width: 100%;
            margin: 10px 0;
          }
          p {
            text-align: center;
            font-size: 12px;
            color: #f2270c;
          }
        }
      }
    }
  }

  //  商品展示
  .goods-list {
    display: flex;
    min-height: 350px;
    padding: 10px;
    ul {
      width: (172 / @vw);
      li {
        min-height: (280 / @vw);
        max-height: 402px;
        margin-bottom: 10px;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        .pic {
          height: (172 / @vw);
          max-height: 248px;
          img {
            height: 100%;
          }
        }
        .info {
          padding: 10px;
          p {
            margin-bottom: 5px;
            font-size: (14 / @vw);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            color: #434343;
            i {
              display: inline-block;
              width: (30 / @vw);
              height: (14 / @vw);
              background: url(../images/spring-festival.png) no-repeat;
              background-size: contain;
            }
            em {
              display: inline-block;
              width: (44 / @vw);
              height: (14 / @vw);
              background: url(../images/jf-supermarket.png) no-repeat;
              background-size: contain;
            }
          }
          div {
            font-size: (12 / @vw);
            color: #ff4142;
            em {
              font-size: (18 / @vw);
            }
          }
          .price span {
            margin-left: 10px;
            border: 1px solid #ff4142;
          }
          .hot {
            color: #ff7500;
          }
          .good-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            .self-support {
              width: (24 / @vw);
              img {
                width: 100%;
              }
            }
            span {
              color: #999;
            }
            .similar {
              padding: 2px 5px;
              border-radius: 10px;
              background-color: #f2f2f2;
              font-size: (14 / @vw);
              color: #262626;
            }
          }
        }
      }
    }
    .left-list {
      margin-right: 10px;
    }
  }

  //  底部公共样式
  .common-footer {
    background-color: #fff;

    .common-links {
      height: (24 / @vw);
      padding: (16 / @vw) (20 / @vw);
      border-top: 1px solid #e5e5e5;
      border-bottom: 1px solid #e5e5e5;
      color: #666;
      font-size: (14 / @vw);
      ul {
        display: flex;
        li {
          flex: 1;
          text-align: center;
          &:nth-child(-n+3) {
            border-right: 1px solid #d7d7d7;
          }
        }
      }
    }

    .common-icons {
      height: (60 / @vw);
      padding: (4 / @vw) (7 / @vw);
      border-bottom: 1px solid #e5e5e5;
      ul {
        display: flex;
        justify-content: space-around;
        height: 100%;
        li {
          img {
            height: 100%;
          }
        }
      }
    }

    .copyright {
      height: (18 / @vw);
      padding: (7 / @vw) 0;
      font-size: (12 / @vw);
      color: #848689;
      text-align: center;
    }
  }

  //  返回顶部
  #backTop {
    position: fixed;
    right: 10px;
    bottom: 120px;
    width: 38px;
    height: 38px;
    background: url(../images/top.PNG) no-repeat;
    background-size: contain;
    z-index: 20;
    display: none;
  }

}


//  初始广告
.big-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .6);
  z-index: 80;
  .ad-pic {
    position: relative;
    width: 60%;
    max-width: 350px;
    img {
      width: 100%;
    }
    .big-cancel{
      position: absolute;
      right: 0;
      top: 0;
      width: (20 / @vw);
      height: (20 / @vw);
      background: url(../images/cancel.PNG) no-repeat;
      background-size: contain;
      transform: translate(50%,-50%);
    }
  }
}


//  底部广告
.small-ad {
  display: flex;
  position: fixed;
  bottom: 75px;
  left: 50%;
  width: 186px;
  height: 40px;
  transform: translateX(-50%);
  background: url(../images/small-ad.png) no-repeat;
  background-size: contain;
  z-index: 40;
  overflow: hidden;
  .small-cancel {
    width: 30px;
  }
  .ad-txt {
    flex: 1;
    ul{
      padding-left: 55px;
      li {
        line-height: 40px;
        color: #fff;
        font-size: 14px;
      }
    }
  }
}